setStyleSourceProperties

abstract fun setStyleSourceProperties(sourceId: String, properties: Value): Expected<String, None>

Sets style source properties. This method can be used to perform batch update for a style source properties. The structure of a provided `properties` value must conform to a format for a corresponding [source type](https://docs.mapbox.com/mapbox-gl-js/style-spec/sources/). Modification of a source [type](https://docs.mapbox.com/mapbox-gl-js/style-spec/sources/#type) is not allowed.

Return

string describing an error if the operation was not successful, empty otherwise.

Parameters

properties

A map of Style source properties.

sourceId

A style source identifier.